﻿using STHPMS1.DAL.D_Core;
using System.Data;
using ServiceStack.OrmLite;
using STHPMS1.ICore.I_Entity.Stmpms1;
using STHPMS1.Common.C_Entity.Stmpms1;
using STHPMS1.ICore.I_DAL.Repository;

namespace STHPMS1.DAL.D_Repository
{
    public class TestRepository : DalBase, ITestRepository
    {
        public ITest GetById(int id)
        {
            using (IDbConnection conn = Adapter.OpenDbConnection())
            {
                return conn.Single<Test>(p=>p.Id==id);
            }
        }
    }
}
